-- GENERATED SPELL FOR [Frayer Wildling] --


function spell0_19608(pUnit, Event) --@Lash,n/a--
pUnit:FullCastSpellOnTarget(34644,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19608', 583, 1)
end

function spell1_19608(pUnit, Event) --@Lash,n/a--
pUnit:FullCastSpellOnTarget(39122,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19608', 602, 1)
end

function Sorts_19608(pUnit, Event)
local choix_sorts_19608 = math.random(0, 1)
if choix_sorts_19608 == 0 then
pUnit:RegisterEvent('spell0_19608', 1, 1)
end
if choix_sorts_19608 == 1 then
pUnit:RegisterEvent('spell1_19608', 1, 1)
end
end

function mob19608_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19608', math.random(1500, 3000), 1)
end

function mob19608_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19608_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19608_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19608, 1, 'mob19608_Action')
RegisterUnitEvent(19608, 2, 'mob19608_Leave')
RegisterUnitEvent(19608, 3, 'mob19608_Kill')
RegisterUnitEvent(19608, 4, 'mob19608_Die')
